package basics.day14.demo;

public abstract class Staff {
    private String name;
    private int age;

    /*
    一般定义时候，在构造函数内提供初始化
     */
    public Staff() {
    }

    public Staff(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public abstract void work();
}
